package com.tcsl.mylibrary;

import android.content.Context;

import com.tcsl.mylibrary.utils.WPPayUtil;

/**
 * 描述:mini旺POS的支付
 * <p/>作者：wjx
 * <p/>创建时间: 2017/5/26 16:44
 */
public class PayWangMi extends TcslPay {

    public PayWangMi(Context context) {
        super(context);
    }

    @Override
    protected void pay(Float money, String orderNo, String merchantNo) {
        String name = mActivity.getClass().getName();
        try {
            WPPayUtil.miniconsume(mListener, money, name, orderNo);
        } catch (SecurityException e) {
            mListener.payError("没有支付权限，请联系开发人员");
        }catch (Exception e) {
            mListener.notSupport();
        }
    }
}
